import axios from '../../utils/axios'

// 登录
export const login = (params: { account: string, password: string }, method?: string) => {
    return axios({
        url: '/teach/passport/login',
        method: method || 'get',
        headers: {
            'Content-Type': 'multipart/form-data',
        },
        data: {
            ...params
        }
    })
}


// 修改资料
export const teachUpdate = (params: {}, method?: string) => {
    return axios({
        url: '/teach/update',
        method: method || 'get',
        headers: {
            'Content-Type': 'multipart/form-data',
        },
        data: {
            ...params
        }
    })
}

// 修改密码
export const teachPasswordUpdate = (params: {}, method?: string) => {
    return axios({
        url: '/teach/password/update',
        method: method || 'get',
        headers: {
            'Content-Type': 'multipart/form-data',
        },
        data: {
            ...params
        }
    })
}

